﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Student
    {
        public string name { get; set; }
        public int age { get; set; }
        public int num { get; set; }
        public Student(string name, int age, int num)
        {
            this.name = name;
            this.age = age;
            this.num = num;
        }
        public override string ToString()
        {
            return $"学号{num},姓名{name},年龄{age}";
        }
    }
}
